Complex mechanics